
beforeNum = 1
while beforeNum <= 9:
    afterNum = 1
    while afterNum <= beforeNum:
        print("%dx%d=%d" % (afterNum, beforeNum, beforeNum * afterNum), end="\t")
        afterNum += 1
    print()    
    beforeNum += 1    